<?php

require_once '../function.php';

if (empty($_GET['id'])){
    exit('需要指定参数');
}

$id = $_GET['id'];

$rows = xiu_IDU('delete from categories where id in (' . $id . ');');

if ($rows <= 0){
    exit('删除失败');
}

header('Location: /admin/categories.php');
